import request from '@/utils/request'

// 搜索售货机(售货机列表)

export const vmList = (params) => {
  return request({
    url: '/api/vm-service/vm/search',
    method: 'GET',
    params
  })
}

// 售货机类型列表(搜索)
export const vmTypeList = (params) => {
  return request({
    url: '/api/vm-service/vmType/search',
    method: 'GET'
  })
}
// 新增售货机
export const addVmApit = (data) => {
  return request({
    url: '/api/vm-service/vm',
    method: 'POST',
    data
  })
}
// 策略列表
export const policyList = (params) => {
  return request({
    url: '/api/vm-service/policy',
    method: 'GET'
  })
}
